<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script type="text/javascript">
    var student = {
        stuNo: '10001',
        name: '张三'
    }
    //给 JS 对象添加属性
    student.age = 18;
    console.log(student);
    //修改属性
    student.name = '李四';
    console.log(student);
    //删除属性
    delete student['name'];
    console.log(student);

</script>
</body>
</html>